package com.sm.li.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sm.li.common.valid.group.AddGroup;
import com.sm.li.common.valid.group.UpdateGroup;
import com.sm.li.entity.base.BaseEntity;
import lombok.Data;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.NotBlank;


@TableName(value = "t_brand")
@Data
public class Brand extends BaseEntity {


    @NotBlank(message = "品牌名称不能为空",groups = {AddGroup.class, UpdateGroup.class})
    private String brandName;
    @NotBlank(message = "品牌站点不能为空",groups = {AddGroup.class, UpdateGroup.class})
    @URL(message = "品牌站点必须为链接")
    private String brandSite;
    private String brandDesc;
    private String brandLogo;


}
